package com.raycloud.erp.omll.data.entity.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 平台店铺信息表
 * </p>
 *
 * @author 枫伦
 * @since 2021-01-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MulPlatformUserDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID，自增")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "平台类型")
    private String source;

    @ApiModelProperty(value = "企业ID")
    private Long companyId;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "店铺名称")
    private String name;

    @ApiModelProperty(value = "店铺简称")
    private String shortName;

    @ApiModelProperty(value = "备注信息")
    private String remark;

    @ApiModelProperty(value = "授权字段列表（authField）")
    private String authFieldList;

    @ApiModelProperty(value = "token信息")
    private String token;

    @ApiModelProperty(value = "token到期时间")
    private LocalDateTime tokenExpire;

    @ApiModelProperty(value = "是否有到期时间 1：是，0：否")
    private Boolean hasExistDeadline;

    @ApiModelProperty(value = "到期时间")
    private LocalDateTime deadline;

    @ApiModelProperty(value = "版本（预留）")
    private String version;

    @ApiModelProperty(value = "是否停用")
    private Boolean active;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime created;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime modified;

    @ApiModelProperty(value = "数据状态 1：有效 0：无效")
    private Boolean enableStatus;

}
